//package com.xingzhe.pengji.security.aspect;
//
//import javax.servlet.http.HttpServletRequest;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.aspectj.lang.annotation.Around;
//import org.aspectj.lang.annotation.Aspect;
//import org.aspectj.lang.ProceedingJoinPoint;
//import org.springframework.stereotype.Component;
//
//@Aspect
//@Component
//public class ControlllerAspect
//{
//    //@Autowired(required = true)
//    //private HttpServletRequest request;
//    
//    private Logger logger = LoggerFactory.getLogger(this.getClass());
//    
//    
//    
//    //    @Pointcut("execution(* *..controller.*.*(..))")
//    //    private void anyMethod()
//    //    {
//    //    }
//    
//    //@Before("anyMethod()")
//    //@Around("execution(* *..controller.*.*(..))")
//    @Around("execution(* org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(..))")
//    public Object controllerPointcut(ProceedingJoinPoint pjp) throws Throwable
//    {
//        logger.debug("123456");
//        try
//        {
//            Object retVal = pjp.proceed();
//            logger.debug("" + retVal.getClass().getDeclaredFields()[0]);
//            logger.debug(retVal.toString());
//            return retVal;
//        }
//        catch (Exception e)
//        {
//            logger.debug("异常");
//            return null;
//        }
//    }
////    public Object authPermission(JoinPoint joinPoint) throws Throwable {
//////        MethodInvocationProceedingJoinPoint methodJoinPoint = (MethodInvocationProceedingJoinPoint) joinPoint;
//////        MethodSignature methodSignature = (MethodSignature) methodJoinPoint
//////                .getSignature();
//////        Method method = methodSignature.getMethod();
//////
//////        int range = Integer.parseInt(request.getParameter("range"));
//////        if (range > 10)
//////            return new ModelAndView("addUserInput");
//////        return new ModelAndView("index");
////        logger.debug(request.getContextPath());
////        return null;
////    }
//}
